package com.ruoyi.receipt.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 生产入库对象 erp_material_receipt
 * 
 * @author ruoyi
 * @date 2025-07-22
 */
public class ErpMaterialReceipt extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 入库id */
    private Long receiptId;

    /** 入库类型 */
    @Excel(name = "入库类型")
    private String receiptType;

    /** 工单号 */
    @Excel(name = "工单号")
    private String workOrder;

    /** 入库数量 */
    @Excel(name = "入库数量")
    private BigDecimal receiptQuantity;

    /** 仓库ID */
    private Long warehouseId;

    /** 物料编码，外键关联erp_material表 */
    @Excel(name = "物料编码，外键关联erp_material表")
    private Long materialId;

    /** 物料规格 */
    @Excel(name = "物料规格")
    private String specification;

    /** 物料名称 */
    @Excel(name = "物料名称")
    private String materialName;

    /** 单据类型 */
    @Excel(name = "单据类型")
    private String documentType;

    /** 单据编号 */
    @Excel(name = "单据编号")
    private Long documentNumber;

    /** 审核状态 */
    @Excel(name = "审核状态")
    private String approvalStatus;

    /** 创建人 */
    @Excel(name = "创建人")
    private String creator;

    public void setReceiptId(Long receiptId) 
    {
        this.receiptId = receiptId;
    }

    public Long getReceiptId() 
    {
        return receiptId;
    }

    public void setReceiptType(String receiptType) 
    {
        this.receiptType = receiptType;
    }

    public String getReceiptType() 
    {
        return receiptType;
    }

    public void setWorkOrder(String workOrder) 
    {
        this.workOrder = workOrder;
    }

    public String getWorkOrder() 
    {
        return workOrder;
    }

    public void setReceiptQuantity(BigDecimal receiptQuantity) 
    {
        this.receiptQuantity = receiptQuantity;
    }

    public BigDecimal getReceiptQuantity() 
    {
        return receiptQuantity;
    }

    public void setWarehouseId(Long warehouseId) 
    {
        this.warehouseId = warehouseId;
    }

    public Long getWarehouseId() 
    {
        return warehouseId;
    }

    public void setMaterialId(Long materialId) 
    {
        this.materialId = materialId;
    }

    public Long getMaterialId() 
    {
        return materialId;
    }

    public void setSpecification(String specification) 
    {
        this.specification = specification;
    }

    public String getSpecification() 
    {
        return specification;
    }

    public void setMaterialName(String materialName) 
    {
        this.materialName = materialName;
    }

    public String getMaterialName() 
    {
        return materialName;
    }

    public void setDocumentType(String documentType) 
    {
        this.documentType = documentType;
    }

    public String getDocumentType() 
    {
        return documentType;
    }

    public void setDocumentNumber(Long documentNumber) 
    {
        this.documentNumber = documentNumber;
    }

    public Long getDocumentNumber() 
    {
        return documentNumber;
    }

    public void setApprovalStatus(String approvalStatus) 
    {
        this.approvalStatus = approvalStatus;
    }

    public String getApprovalStatus() 
    {
        return approvalStatus;
    }

    public void setCreator(String creator) 
    {
        this.creator = creator;
    }

    public String getCreator() 
    {
        return creator;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("receiptId", getReceiptId())
            .append("receiptType", getReceiptType())
            .append("workOrder", getWorkOrder())
            .append("receiptQuantity", getReceiptQuantity())
            .append("warehouseId", getWarehouseId())
            .append("materialId", getMaterialId())
            .append("specification", getSpecification())
            .append("materialName", getMaterialName())
            .append("documentType", getDocumentType())
            .append("documentNumber", getDocumentNumber())
            .append("approvalStatus", getApprovalStatus())
            .append("creator", getCreator())
            .append("createTime", getCreateTime())
            .toString();
    }
}
